<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>图片墙</title>
</head>
<style>
    * {
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }
    body{
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        background-color: #1a252c;

    }
    .container {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        transform-style: preserve-3d;


    }
    .container .box {
        position: relative;
        margin: auto 2px;
        width: 225px;
        height: 345px;
        transition: .5s;
        -webkit-box-reflect: below 4px linear-gradient(transparent, #0002);
        /* 倒影 */
    }
    .container .box img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    /* 鼠标滑过 */
    .container:hover > :not(:hover) {  /*判断其余元素*/
        margin: 0 -20px;
        filter: drop-shadow(0 0 25px rgb(11, 182, 168))
                drop-shadow(0 0 45px rgb(9, 173, 165));
        transform: perspective(500px) rotateY(45deg) scale(0.9);
    }
    /* 左右相反方向 */
    .container .box:hover ~ .box{
        transform: perspective(500px) rotateY(-45deg) scale(0.9);
    }
    /* 当前放大 */
    .container .box:hover{
        transform: perspective(500px) rotateY(0deg) scale(1.2);
    }

</style>
<body>
    <div class="container">
        <div class="box"><img src="img/01.jpg" alt=""></div>
        <div class="box"><img src="img/02.jpg" alt=""></div>
        <div class="box"><img src="img/03.jpg" alt=""></div>
        <div class="box"><img src="img/04.jpg" alt=""></div>
        <div class="box"><img src="img/05.jpg" alt=""></div>
        <div class="box"><img src="img/06.jpg" alt=""></div>
    </div>
</body>
</html>